<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<title>vue</title>
		<script src="https://cdn.jsdelivr.net/npm/vue@2"></script>
		<style>
			img {
				width: 200px;
				height: 200px;
			}
		</style>
	</head>
	<body>
		<div id="app">
			<p v-if="a<b">a小于b</p>
			       <template v-if="show">
				<img src="./image/1.webp" alt="">
				<img src="./image/2.webp" alt="">
				   </template>
			        <div  v-if="show">
				<img src="./image/3.webp" alt="">
				<img src="./image/4.webp" alt="">
				    
			</div>
			    
		</div>

		<script>
			var exam = new Vue({
				el: "#app",
				data: {
					a: 100,
					b: 200,
					show: false
				}
			})
			exam.show = true
		</script>
	</body>
</html>
